package com.excilys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.excilys.model.Logbar;

/**
 * Class that takes care of the home page
 * 
 * @author excilys dev : NT
 * 
 */
@Controller
@RequestMapping("/home")
public class HomeController {

	org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(AccountsController.class);

	/**
	 * Displays the home page / http request : GET / jsp response : home.jsp
	 * 
	 */
	@RequestMapping(method = RequestMethod.GET)
	public void displayHome(Model model) {
		(new Logbar()).setContent(model);
	}
}
